package ooday02;

public class Test {
    public static void main(String[] args) {
    Dog [] dogs = new Dog[3];
    dogs[0] = new Dog("旺财",2,"黑色");
    dogs[1] = new Dog("小贝",22,"紫色");
    dogs[2] = new Dog("哮天犬",222,"彩虹色");
    for (int i=0;i<dogs.length;i++){
        System.out.println(dogs[i].color);
        dogs[i].lookHome();

    }








    }
}
